main: rational.o main.o
	g++ main.o rational.o -lfl -ggdb -o main 

main.o: main.cpp
	g++ -c -ggdb main.cpp

rational.o: rational.cpp rational.h
	g++ -c -ggdb rational.cpp

clean:
	rm -f *.o main
